#!/usr/bin/env python
# encoding: utf-8
# @author: Lin Han
# @contact: voldemort22@126.com
# @file: 20210621_2.py
# @time: 2021/6/21 14:37
# @desc:
from utils.mongo_tools import retrieve_all_mongo_values
from views.configs import PART_TYPE_COLLECTION

part_type = retrieve_all_mongo_values({}, collection_name=PART_TYPE_COLLECTION)

part_type_dict = {i["number"]: i["name"] for i in part_type}
